// GPS_Interpreter.c: Defines the exported functions for the DLL application.
//

#include "stdafx.h"
#include "checkNMEA.h"
#include "interpreter.h"

_declspec (dllexport) short int getTypeNumber(char *NMEA_Raw_String) {
    return typeCode2Num(NMEA_Raw_String);
}
_declspec (dllexport) int validateData(char* NMEA_Raw_String) {
    return validate(NMEA_Raw_String);
}
_declspec (dllexport) unsigned long int getTime(char* NMEA_Raw_String) {
    return rtime(NMEA_Raw_String);
}
_declspec (dllexport) time_t getUnixDateTime(char* NMEA_Raw_String) {
    return dateTime(NMEA_Raw_String);
}
_declspec (dllexport) double getDistance(double latA, double lonA, double hA, double latB, double lonB, double hB){
	return distance(latA, lonA, hA, latB, lonB, hB);
}
_declspec (dllexport) double getDirection(double latA, double lonA, double latB, double lonB){
	return direction(latA, lonA, latB, lonB);
}
_declspec (dllexport) double getLatitude(char* NMEA_Raw_String) {
    return latitude(NMEA_Raw_String);
}
_declspec (dllexport) double getLongitude(char* NMEA_Raw_String) {
    return longitude(NMEA_Raw_String);
}